package com.sc.sso.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @auther sc
 * @Date 2017/11/5
 */
@Controller
public class PageController {

    /***
     * 注册
     */
    @RequestMapping("/page/login")
    public String showLogin(String redirectURL, Model model){
        //参数传递给jsp
        model.addAttribute("redirect",redirectURL);

        return "login";
    }
    @RequestMapping("/page/register")
    public String showRegister(){
        return "register";
    }
}
